package com.gezi.admin.module.sys.dict.data;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gezi.admin.module.sys.dict.data.model.AppDictDataSearchModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author 格子代码
 * @createDate 2024/2/10 09:00
 * @contact 1424529270@qq.com
 */
@Mapper
public interface AppDictDataMapper extends BaseMapper<AppDictDataEntity> {

    List<Map> findBySearchVo(@Param("searchVo") AppDictDataSearchModel searchVo);

    Page<Map> findBySearchVo(@Param("page") Page page,
                                          @Param("searchVo") AppDictDataSearchModel searchVo);

    Long countAllByTypeAndDataType(@Param("type") String type, @Param("dataType") String dataType);
}
